package com.sirui.x.busi.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.sirui.x.busi.service.BusinessService;

@RestController
@RequestMapping("seata")
public class BusiTestController {

	@Autowired
	private BusinessService busiSvc;

	@RequestMapping("test1")
	public String test1() {
		return "simple call";
	}

	@RequestMapping("at")
	public String at() {
		busiSvc.purchase("wang", "chi", 2);
		return "simple call";
	}
}
